package com.sharp.core.raytrace.shading;

import com.sharp.core.graphics.Color;
import com.sharp.core.graphics.Light;
import com.sharp.core.raytrace.Intersection;

public class AmbientShading extends Shading {

	@Override
	public Color calcColor(Intersection inter, Light light, Color c) {
		Color white = new Color(inter.getPrimitive().getMaterial().getColor());
		return white.multiply(inter.getScene().getAmbientCoefficient());
	}

}
